var config = {
    //地图相关配置
    mapconfig: {
        mapwkid: 4549, //坐标系
        mapwkid2385: 2385,
        basemapurl: "http://www.fqghj.net:8022/arcgis/rest/services/CXGHBZ/YDGHPH/MapServer", //一张图底图服务
        czurl: "http://www.fqghj.net:8022/arcgis/rest/services/DG/CZKFBJ0614/MapServer", //城镇开发边界
        hxUrl: "http://www.fqghj.net:8887/arcgis/rest/services/YDHX/ZSHXK/MapServer/0", //项目红线
        //全图坐标范围
        startExtent: {
            min_x: 3.7552673304E7,
            min_y: 3632958.494999999,
            max_x: 3.76073218E7,
            max_y: 3719096.498400001
        },
        pgkhExtent: {
            min_x: 394447.65239553,
            min_y: 2813852.1189,
            max_x: 491999.92010447,
            max_y: 2862729.8697
        },
        //查询定位服务
        queryconfig: {
            //查询地址
            cxdwurl: ["http://202.101.128.22:8022/arcgis/rest/services/DG/DM/MapServer",
                "http://202.101.128.22:8022/arcgis/rest/services/DG/DLMM_GHYMM/MapServer",
                "http://202.101.128.22:8022/arcgis/rest/services/DG/DLMM_YZSGB/MapServer",
                "http://202.101.128.22:8022/arcgis/rest/services/CXGHBZ/DYKGHF/MapServer",
                "http://202.101.128.22:8022/arcgis/rest/services/CXGHBZ/DYKGHF/MapServer",
                "http://fqghj.net:8887//arcgis/rest/services/YDHX/FJSYDHX/MapServer",
                "http://fqghj.net:8887/arcgis/rest/services/YDHX/JSXMYDHX/MapServer"
            ],
            //查询图层
            cxdwlayerid: [
                [0],
                [0],
                [0],
                [0],
                [1],
                [0, 1, 2],
                [0, 1, 2, 3, 4, 5, 6, 7]
            ],
            //查询字段
            cxdwfield: [
                ["name"],
                ["FNAME"],
                ["FNAME"],
                ["所属分区单元名称"],
                ["所属分区单元名称"],
                ["PRJNAME", "FCOMPANY"],
                ["PRJNAME", "FCOMPANY"]
            ]
        },
        //村界
        cjconfig: {
            url: "http://fqghj.net:8887/arcgis/rest/services/XZQY_CJ/MapServer/0",
            nameField: "XZQMC",
            objectField: "OBJECTID"
        },
        //镇界
        zjconfig: {
            url: "http://fqghj.net:8887/arcgis/rest/services/XZQY_ZJ/MapServer/0",
            nameField: "乡镇名称",
            objectField: "OBJECTID"
        },
        qhdconfig: {
            qsfwurl: "http://192.168.1.46:6080/arcgis/rest/services/QHDServices/秦皇岛市域范围/MapServer/0",
            zjurl: "http://192.168.1.46:6080/arcgis/rest/services/QHDServices/行政区划图/MapServer/0",
            zjnameField: "XZQMC",
            zjobjectField: "OBJECTID"
        },
        tempFeatureUrl: "",
        MapGeometryService: "http://fqghj.net:8887/arcgis/rest/services/Utilities/Geometry/GeometryServer",
        identifyRadius: 10,
        visibleRaduis: 500, //可视化半径
        prjlayerkey: "项目红线",
        serverUrl: "http://www.fqghj.net:8887",
        proxyUrl: getRootPath() + "/DotNet/proxy.ashx",
        MapPrintURL: "http://fqghj.net:8887/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task", ////地图打印服务           
        initPrintUrl: "http://202.101.128.22:8887/arcgis/rest/services/GP/A2L/GPServer/Export%20Web%20Map", //到处专题图 specialmap.js
        blacklayerUrl: "http://fqghj.net:8887/arcgis/rest/services/AuthorizeArea/MapServer", //地图蒙版服务            
        jcyjxzqURL: "http://fqghj.net:8887/arcgis/rest/services/XZQ/MapServer/", //监测预警行政区服务           
        fzxzGPUrl: "http://202.101.128.22:8887/arcgis/rest/services/GP/FZXZ/GPServer/FZXZ", //辅助选址的gp           
        fzxzclassUrl: "http://202.101.128.22:8887/arcgis/rest/services/GP/GTYS/MapServer/3", //辅助因子   

        hgfield: "YDDM", //合规审查总规和控规监测的性质字段
        //生活圈分析速度,人居环境改善
        rjhjconfig: {
            bxspeed: 1.5, //步行速度设置
            qxspeed: 2, //骑车速度设置
            carspeed: 15, //汽车速度设置
            zgptUrl: "http://202.101.128.22:8887/arcgis/rest/services/GP/ZGPT/MapServer",
            zgptfeatureUrl: "http://202.101.128.22:8887/arcgis/rest/services/GP/ZGPT/FeatureServer",
            features: {
                GJZ: { layerid: 0, name: "公交站" },
                GGCS: { layerid: 1, name: "公共厕所" },
                CSSF: { layerid: 2, name: "城市书房" },
                XYY: { layerid: 3, name: "小游园" },
            }
        },
        roadUrl: "http://202.101.128.22:8022/arcgis/rest/services/CXGHBZ/DLJTGH/MapServer", //路网            
        dmUrl: "http://202.101.128.22:8022/arcgis/rest/services/DG/DM/MapServer/0", //地名            
        ggssUrl: "http://202.101.128.22:8887/arcgis/rest/services/GP/GTYS/MapServer/3", //公共设施
        serviceAreaUrl: "http://202.101.128.22:8887/arcgis/rest/services/GP/DLFX/NAServer/ServiceArea", //NA服务
        //绿地覆盖率分析
        ldconfig: {
            url: "http://202.101.128.22:8887/arcgis/rest/services/GP/LDFGFX/GPServer/LDFGFX",
            raduis: 300,
            Mapserver: "http://202.101.128.22:8022/arcgis/rest/services/CXGHBZ/YDGHPH/MapServer",
            ldlayerUrl: "http://202.101.128.22:8022/arcgis/rest/services/CXGHBZ/YDGHPH/MapServer/4",
            jzlayerUrl: "http://202.101.128.22:8022/arcgis/rest/services/CXGHBZ/YDGHPH/MapServer/0",
            greenUrl: "http://202.101.128.22:8887/arcgis/rest/services/GP/CSLDL/GPServer/CSLDL", //城市绿地率
        },

        //规划审查中的三线监测
        sxctUrl: "http://202.101.128.22:8887/arcgis/rest/services/GP/SXCT/MapServer",
        stbhhx_czkfbj_Url: "http://202.101.128.22:8887/arcgis/rest/services/GP/SXCT/MapServer/0",
        stbhhx_jbnt_Url: "http://202.101.128.22:8887/arcgis/rest/services/GP/SXCT/MapServer/1",
        czkfbj_jbnt_Url: "http://202.101.128.22:8887/arcgis/rest/services/GP/SXCT/MapServer/2",
    },
    //检测预警
    jcyj: {
        //检测预警模块
        module: {
            ZRZY: { title: "自然资源监测" },
            STHJ: { title: "生态环境监测" },
            QYGK: { title: "全域概况" },
            SXZL: { title: "三线总量" },
            NYDFD: { title: "农用地分等", leveldata: ["一等", "二等", "三等", "四等", "五等", "六等", "七等", "八等", "九等"], leveltype: ['经济等', '自然等', '利用等'] },
            TDCB: { title: "土地储备" },
            DTGY: { title: "土地供应" },
            KZZB: { title: "控制指标" },
            ZLKZ: { title: "总量控制" },
            NYD: { title: "农用地" },
            YDGM: { title: "用地规模" },
            JSYD: { title: "建设用地供应" },
        }
    },
    //规划文本
    ghwb: {
        docspath: "../GTKJYJ/DocImg/DOCS/",
    },
    index: {
        ONEMAP: "OneMap.aspx", //一张图
        JCYJ: "JCYJ_new.aspx", //监测预警
        ZYGL: "ZYGX.aspx", //资源管理
        GHSC: "GHSC.aspx", //规划审查
        FZGZ: "YTGZ.aspx", //辅助管制
        FXPG: "FXPJ.aspx", //分析评价
        //PGKH: "PGZB.aspx",   //评估考核
        PGKH: "PGKH.aspx",
        ZBMX: "RJHJ.aspx", //指标模型，人居环境
        GZFW: "PublicService.aspx", //公众服务
        SJHJ: "DataInterChange.aspx" //数据汇交
    }
};

function getRootPath() {
    var pathName = window.location.pathname.substring(1);
    var webName = pathName == '' ? '' : pathName.substring(0, pathName.indexOf('/'));
    return window.location.protocol + '//' + window.location.host + '/' + webName;
};